<template>
	<view class="container">
		<u-parse :content="content" @navigate="navigate"></u-parse>
	</view>
</template>

<script>  
import uParse from "@/components/feng-parse/parse.vue"
import content from '@/static/articleDatas/content.js';
import content2 from '@/static/articleDatas/content2.js'; 
export default {
	components: { 
		uParse
	},
	data() {
		return { 
			content: content2,
			// article:'<div>测试</div>'
		};
	},
	onLoad(option) { 
	},
	methods: {
		preview(src, e) {
			// do something
		},
		navigate(href, e) {
			// do something
		}
	}
};
</script>

<style lang="scss" scoped> 
@import url("@/components/feng-parse/parse.css");
.container{
	width: 100%;
	padding: 20upx;
	box-sizing: border-box;
}
</style>
